<template>
  <div class="header-common" @click='back'>
      <i class='iconfont icon-back' ></i>
      <slot></slot>
  </div>
</template>

<script>
export default {
  data () {
    return {};
  },

  components: {},

  computed: {},

  methods: {
      back(){
          this.$router.go(-1); //后退一步
      }
  }
}
</script>
<style lang='less' scoped>
    .header-common{
        line-height: 56px;
        height: 56px;
        background: #2a2a2a;
        text-align: center;
        color: #fff;
        i{
            position:absolute;
            left: 15px;
        }
    }
</style>